import logging
from models import Account

class DefaultWombatConfig():
  default_scope = Account.get_or_insert('yreceipts', name='yReceipts Admin')
  after_login_path = '/users/businesses/business_location/'
  after_logout_path = '/ulogin.html'

# To create a custom config file, copy everything ABOVE this line into a file called custom_config.py, rename the class to WombatConfig and put it in the same folder
'''DO NOT MODIFY THIS FILE!'''

try:
  from wombat_config import WombatConfig as CustomWombatConfig
  logging.debug('Using custom Wombat Config')
  class WombatConfig(CustomWombatConfig, DefaultWombatConfig):
    pass
except:
  logging.warn('Using default Wombat Config')
  class WombatConfig(DefaultWombatConfig):
    pass